<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>CSS 不显示</title>
    <style>
      .parent {
        width: 500px;
        height: 300px;
        margin: 50px auto;
        padding: 10px;
        border: 1px solid black;
      }
      p {
        padding: 10px;
        border: 1px solid red;
      }
    </style>
  </head>
  <body>
    <div class="parent">
      <p>段落1</p>
      <p style="display: none">段落2</p>
      <p>段落3</p>
      <p style="visibility: hidden">段落4</p>
      <p>段落5</p>
    </div>
  </body>
</html>
